package com.coincalf.feign.hystrix;

import com.coincalf.feign.AccountServiceClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 资金账户服务
 * by crow
 * 2018年5月19日14:38:00
 */
@Slf4j
@Component
public class AccountServiceClientFallback implements AccountServiceClient {

    /**
     * 充币到账
     *
     * @return
     */
    @Override
    public void recharge() {
        log.warn("服务降级...");
    }

    @Override
    public boolean syncAccount(long userId) {
        return false;
    }

}
